package com.etoak.stock.vo.resp;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@ApiModel("用户登录响应对象")
public class LoginRespVo {
    /*
    * 用户的id  将long类型数字进行json格式的转化 转化成String
    * */
   @JsonSerialize(using = ToStringSerializer.class)
    @ApiModelProperty(value = "用户id")
    private Long id;
    /*
     * 用户名
     * */
    @ApiModelProperty(value = "用户名")
    private String username;
    /*
    * 用户真实姓名
    * */
    @ApiModelProperty(value = "用户真实姓名")
    private String nickName;
    /*
     * 用户的手机号
     * */
    @ApiModelProperty(value = "用户的手机号")
    private String phone;
}
